// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增安全-危化品管理报表数据 POST /safeChemicalsReport/add */
export async function safeChemicalsReportAdd(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportAdd(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeChemicalsReportAdd(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportAdd(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除安全-危化品管理报表数据 POST /safeChemicalsReport/delete */
export async function safeChemicalsReportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeChemicalsReportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-危化品管理报表数据 POST /safeChemicalsReport/get */
export async function safeChemicalsReportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsReportEntity>;

export async function safeChemicalsReportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsReportEntity>>;

export async function safeChemicalsReportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsReportEntity>;

export async function safeChemicalsReportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsReportEntity>(`/app/safeChemicalsReport/get`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeChemicalsReportEntity>(`/app/safeChemicalsReport/get`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-危化品管理报表VO数据 POST /safeChemicalsReport/getVo */
export async function safeChemicalsReportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsReportResp>;

export async function safeChemicalsReportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsReportResp>>;

export async function safeChemicalsReportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsReportResp>;

export async function safeChemicalsReportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsReportResp>(`/app/safeChemicalsReport/getVo`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeChemicalsReportResp>(`/app/safeChemicalsReport/getVo`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-危化品管理报表分页数据 POST /safeChemicalsReport/page */
export async function safeChemicalsReportPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsReportEntity>;

export async function safeChemicalsReportPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsReportEntity>>;

export async function safeChemicalsReportPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsReportEntity>;

export async function safeChemicalsReportPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsReportEntity>(`/app/safeChemicalsReport/page`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageSafeChemicalsReportEntity>(`/app/safeChemicalsReport/page`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 更新安全-危化品管理报表数据 POST /safeChemicalsReport/update */
export async function safeChemicalsReportUpdate(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportUpdate(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeChemicalsReportUpdate(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeChemicalsReportUpdate(
  body: BIZAPI.SafeChemicalsReportEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeChemicalsReport/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-危化品管理报表VO分页数据 POST /safeChemicalsReport/voPage */
export async function safeChemicalsReportVoPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsReportResp>;

export async function safeChemicalsReportVoPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsReportResp>>;

export async function safeChemicalsReportVoPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsReportResp>;

export async function safeChemicalsReportVoPage(
  body: BIZAPI.SafeChemicalsReportQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsReportResp>(`/app/safeChemicalsReport/voPage`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageSafeChemicalsReportResp>(`/app/safeChemicalsReport/voPage`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}
